package com.hotel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName ht_floor
 */
@TableName(value ="ht_floor")
@Data
public class HtFloor implements Serializable {
    /**
     * 楼层编号
     */
    @TableId
    private Long floorNo;

    /**
     * 楼层名，一楼、二楼、三楼等
     */
    private String floorName;

    /**
     * 备注
     */
    private String floorRemark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HtFloor other = (HtFloor) that;
        return (this.getFloorNo() == null ? other.getFloorNo() == null : this.getFloorNo().equals(other.getFloorNo()))
            && (this.getFloorName() == null ? other.getFloorName() == null : this.getFloorName().equals(other.getFloorName()))
            && (this.getFloorRemark() == null ? other.getFloorRemark() == null : this.getFloorRemark().equals(other.getFloorRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFloorNo() == null) ? 0 : getFloorNo().hashCode());
        result = prime * result + ((getFloorName() == null) ? 0 : getFloorName().hashCode());
        result = prime * result + ((getFloorRemark() == null) ? 0 : getFloorRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", floorNo=").append(floorNo);
        sb.append(", floorName=").append(floorName);
        sb.append(", floorRemark=").append(floorRemark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}